package com.stars.entity.pshow;
import javax.validation.constraints.NotBlank;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Table;
import java.math.BigDecimal;
import io.swagger.annotations.ApiModelProperty;
import com.stars.common.base.entity.BaseEntity;import com.stars.common.annotation.AutoCode;			
/**
 * @Title: 销售订单实体
 * @author 肖伟
 * @date 2020-01-04
 * @version V1.0
 *
 */
@Data
@Table(name = "P_SHOW_ORDERS")
@EqualsAndHashCode(callSuper = false)
public class PShowOrdersEntity extends BaseEntity{

	/**订单名称*/
	@NotBlank(message="订单名称不能为空!")
	@Column(name = "ORDER_NAME")
	@ApiModelProperty(value ="订单名称",name = "orderName")
	private String orderName;
	/**订单编号*/
	@AutoCode(dbCode = "order_code",prefix="",valCode="orderCode")
	@Column(name = "ORDER_CODE")
	@ApiModelProperty(value ="订单编号",name = "orderCode")
	private String orderCode;
	/**订单日期*/
	@NotBlank(message="订单日期不能为空!")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
	@Column(name = "ORDER_DATE")
	@ApiModelProperty(value ="订单日期",name = "orderDate")
	private Date orderDate;
	/**截止日期*/
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
	@Column(name = "ORDER_END_DATE")
	@ApiModelProperty(value ="截止日期",name = "orderEndDate")
	private Date orderEndDate;
	/**客户ID*/
	@NotBlank(message="客户ID不能为空!")
	@Column(name = "CUSTOMER_ID")
	@ApiModelProperty(value ="客户ID",name = "customerId")
	private String customerId;
	/**订单总数*/
	@Column(name = "ORDER_NUM")
	@ApiModelProperty(value ="订单总数",name = "orderNum")
	private Long orderNum;
	/**订单总价(元)*/
	@Column(name = "ORDER_PRICE")
	@ApiModelProperty(value ="订单总价(元)",name = "orderPrice")
	private Double orderPrice;
	/**收货地址*/
	@Column(name = "ORDER_SITE")
	@ApiModelProperty(value ="收货地址",name = "orderSite")
	private String orderSite;
	/**收货人*/
	@Column(name = "ORDER_USER")
	@ApiModelProperty(value ="收货人",name = "orderUser")
	private String orderUser;
	/**收货人电话*/
	@Column(name = "ORDER_PHONE")
	@ApiModelProperty(value ="收货人电话",name = "orderPhone")
	private String orderPhone;
	/**订单状态*/
	@Column(name = "ORDER_STATUS")
	@ApiModelProperty(value ="订单状态",name = "orderStatus")
	private String orderStatus;
	/**完成总数*/
	@Column(name = "ORDER_DONE_NUM")
	@ApiModelProperty(value ="完成总数",name = "orderDoneNum")
	private Long orderDoneNum;
	/**完成总价(元)*/
	@Column(name = "ORDER_DONE_PRICE")
	@ApiModelProperty(value ="完成总价(元)",name = "orderDonePrice")
	private Double orderDonePrice;
	/**是否有货*/
	@Column(name = "HAS_GOODS")
	@ApiModelProperty(value ="是否有货",name = "hasGoods")
	private Integer hasGoods;
}

